#include <iostream>
int main(int argc, char const *argv[])
{
    // 直接赋值
    int carrots = 100;

    // 先声明,后赋值
    int tempNum;
    tempNum = 100;
    
    // C++11 {}初始化器
    int integerNum = {1};
    char character[5] = {'r','t','e','w','q'};

    //在C++11 中可以省略 "="
    double doubleArray[] {10,123,10.3,123};
    double doubleArray[] = {10,123,10.3,123};
    //当为空的时候,将会把元素初始化为0
    double doubleArray[100] = {};

    return 0;
}
